<template>
    <div id="app">
      首页APP
      <router-view></router-view>
    </div>
  </template>
  
  <script>
  import { getToken, getLocalStorage, LANGKEY } from '@/utils/auth';
  
  export default {
    name: 'App',
    created() {
        if(process.client){
            if(getToken(this)){
                this.$store.dispatch("socket/scoketOpen", getToken(this));
            }
        }
    },
    mounted() {
      this.$i18n.locale = getLocalStorage(LANGKEY);
      this.locale = null
    }
  }
  </script>
  
  <style lang="scss">
  #app{
    padding: 0;
    margin: 0 auto;
    clear: both;
    height: 100%;
    width: 100%;
  }
  </style>